package com.ruoyi.factorydata.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;

/**
 * 仓库仓位信息对象 warehouse_position
 *
 * @author ruoyi
 * @date 2025-07-16
 */
@Getter
@Setter
@TableName(resultMap = "com.ruoyi.factorydata.mapper.WarehousePositionMapper.WarehousePositionResult")
public class WarehousePosition extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 仓库ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 仓库id
     */
    @Excel(name = "仓库id")
    private Long warehouseId;

    /**
     * 仓库编码
     */
    @Excel(name = "仓库编码")
    private String warehouseCode;

    /**
     * 仓位编码
     */
    @Excel(name = "仓位编码")
    private String posistionCode;

    /**
     * 仓位名称
     */
    @Excel(name = "仓位名称")
    private String posistionName;

    /**
     * 仓位状态
     */
    @Excel(name = "仓位状态")
    private Integer status;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic(value = "0", delval = "2")
    private String delFlag;

    /**
     * 版本号
     */
    @Excel(name = "版本号")
    @Version
    private Long version;

    @Excel(name = "创建者")
    @TableField(exist = false)
    private String createByName;



}